package com.walala.logic.redis;

import com.walala.logic.common.Global;

import redis.clients.jedis.Jedis;

public class RedisClient {
	
	public static RedisClient intance = new  RedisClient();
	
	private static Jedis jedis = null;
	
	static{
		//初始化jedis连接
		if(jedis == null){
             jedis = new Jedis(Global.redis_addr, Global.redis_port, Global.redis_connTimeout, Global.redis_timeout);
		}
	}
	
	public Jedis getCluster(){
		return jedis;
	}
	
	public static void main(String[] args) {
		RedisClient.intance.getCluster();
	}
	
	
	
}
